package smartcrud.spring.models.rbac;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
 * 
 * 
 */
public class User implements Serializable{
	private Long id;//
	private String email;//
	private String username;//nickname
	private String password;//
	private String fullname;//
	private String sex;//
	private Date birth;//
	private Boolean isAdmin;//
	private Byte status;//
	
	public Set<Role> roles = new HashSet<Role>();
	
	
	public User(){}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return this.id;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getEmail() {
		return this.email;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getUsername() {
		return this.username;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPassword() {
		return this.password;
	}
	public void setFullname(String fullname) {
		this.fullname = fullname;
	}
	public String getFullname() {
		return this.fullname;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getSex() {
		return this.sex;
	}
	public void setBirth(Date birth) {
		this.birth = birth;
	}
	public Date getBirth() {
		return this.birth;
	}
	public void setIsAdmin(Boolean isAdmin) {
		this.isAdmin = isAdmin;
	}
	public Boolean getIsAdmin() {
		return this.isAdmin;
	}
	public void setStatus(Byte status) {
		this.status = status;
	}
	public Byte getStatus() {
		return this.status;
	}
	public Set<Role> getRoles() {
		return roles;
	}
	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}
	
}